package com.lovejes.cuniao.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the cn_hint table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="cn_hint"
 */

public abstract class BaseCnHint  implements Serializable {

	public static String REF = "CnHint";
	public static String PROP_TYPE = "Type";
	public static String PROP_IUSERID = "Iuserid";
	public static String PROP_USERID = "Userid";
	public static String PROP_ID = "Id";


	// constructors
	public BaseCnHint () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseCnHint (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String userid;
	private java.lang.String type;
	private java.lang.String iuserid;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: USERID
	 */
	public java.lang.String getUserid () {
		return userid;
	}

	/**
	 * Set the value related to the column: USERID
	 * @param userid the USERID value
	 */
	public void setUserid (java.lang.String userid) {
		this.userid = userid;
	}



	/**
	 * Return the value associated with the column: TYPE
	 */
	public java.lang.String getType () {
		return type;
	}

	/**
	 * Set the value related to the column: TYPE
	 * @param type the TYPE value
	 */
	public void setType (java.lang.String type) {
		this.type = type;
	}



	/**
	 * Return the value associated with the column: IUSERID
	 */
	public java.lang.String getIuserid () {
		return iuserid;
	}

	/**
	 * Set the value related to the column: IUSERID
	 * @param iuserid the IUSERID value
	 */
	public void setIuserid (java.lang.String iuserid) {
		this.iuserid = iuserid;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.cuniao.domain.CnHint)) return false;
		else {
			com.lovejes.cuniao.domain.CnHint cnHint = (com.lovejes.cuniao.domain.CnHint) obj;
			if (null == this.getId() || null == cnHint.getId()) return false;
			else return (this.getId().equals(cnHint.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}